package com.rich.user.service.impl;

import com.rich.common.constant.SuggestEnum;
import com.rich.common.entity.TbSuggest;
import com.rich.common.entity.TbUser;
import com.rich.common.result.CommonResponse;
import com.rich.user.mapper.TbSuggestMapper;
import com.rich.user.mapper.UserMapper;
import com.rich.user.service.UserService;
import com.rich.user.vo.SuggestVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Package: com.rich.user.service.impl
 * @Author: 张dy
 * @Date: Created in 2021/8/21 上午 8:51
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Autowired
    private TbSuggestMapper suggestMapper;

    @Override
    public TbUser findById(Long uid) {
        return userMapper.findById(uid);
    }

    @Override
    public TbUser findByUserName(String phone) {
        return userMapper.findByUserName(phone);
    }


}
